import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ButtonGroupComponent } from './button-group/button-group.component';
import { EntityRefSelectComponent } from './entity-ref-select/entity-ref-select.component';
import { EntitySelectComponent } from './entity-select/entity-select.component';

import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzSpaceModule } from 'ng-zorro-antd/space';
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
import { NzSelectModule } from 'ng-zorro-antd/select';
import { NzInputModule } from 'ng-zorro-antd/input';

@NgModule({
  declarations: [ButtonGroupComponent, EntityRefSelectComponent, EntitySelectComponent],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    NzIconModule,
    NzButtonModule,
    NzSpaceModule,
    NzDropDownModule,
    NzSelectModule,
    NzInputModule,
  ],
  exports: [ButtonGroupComponent, EntityRefSelectComponent, EntitySelectComponent],
})
export class WidgetModule {}
